<html>
	<title>A unit test for drw.SystemUnderTest class</title>
	<head>
		<script type='text/javascript' src='../app/jsUnitCore.js'></script>
		<script type="text/javascript" src="../lib/jsUnitMockTimeout.js"></script>		

		<script type='text/javascript' src='../../jquery.js'></script>
		
<script type='text/javascript' src='../../js/data.js'></script>
<script type='text/javascript' src='../../js/da.js'></script>
<script type='text/javascript' src='../../js/util.js'></script>		
<script type='text/javascript' src='../../js/log.js'></script>		
<script type='text/javascript' src='../../js/query.js'></script>
<script type='text/javascript' src='../../js/actionHelper.js'></script>		
<script type='text/javascript' src='../../js/hnting.js'></script>	
<script type='text/javascript' src='../../js/huntMgr.js'></script>
		<script type='text/javascript'>
			function debug_log(msg) {0
				console.log(msg);
			}

			var query;
			
			// 占쎄쑴肉�占썬끉�� 
			var em = {};
			em.ahelper = new CActionHelper();
			em.ahelper.initialize();

			em.util = new CUtil();

			em.hnting = new CHnting();
			em.hnting.initialize();
			em.test = false;


			function setUp() {
				// perform fixture set up

			}

			function tearDown() {
				// clean up
			}

	

	function testHntActions_real() {
				// hnt action test 
				em.test = false;
				var result = false;
				var errorcode = 0 ;
				var complete = false;
				
				// go hnt action 
//				var	hnt = new CHuntMgr();
				//hnt.initialize();
				
				var ta_param = {
							// att param :  x, y, tr: { s : n , o : n }, success_cb , error_cb
							citnum : 3070,
							x: 84,
							y:12,
							tr: { o:244},
							success_cb : succ, 
							error_cb :   error,
				};
				
				em.hnting.setTgt(ta_param);
				em.hnting.doAttc();
				
				function succ () {
					result = true;
					complete = true;
				};

				function error(code) {
					result = false;
					errorcode = code;
					complete = true;	
					debug_log("Erro CB is called !!! in test case ")				
				}				
				
				// sync call
				assertTrue(true); 
				
				// wait until all cb recv...


				// check valid result..
				//Clock.tick(1500000000);
		//		assertTrue(result); 

			};
		

		
		</script>
	</head>
	<body/>
</html>